package org.ziyuandagong.folder.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 自愿打工
 * @since 2024-12-06
 */
@TableName("folder")
@ApiModel(value = "Folder对象", description = "")
public class Folder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("文件夹唯一标识符")
    private String folderId;

    @ApiModelProperty("父文件夹的ID，顶级文件夹则为NULL")
    private String parentFolderId;

    @ApiModelProperty("文件夹名称")
    private String folderName;

    @ApiModelProperty("创建文件夹的用户ID")
    private String userId;

    @ApiModelProperty("文件夹创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("文件夹最后更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("是否已被删除（逻辑删除）")
    private Boolean isDeleted;

    @ApiModelProperty("文件夹删除时间")
    private LocalDateTime deleteTime;

    public String getFolderId() {
        return folderId;
    }

    public void setFolderId(String folderId) {
        this.folderId = folderId;
    }
    public String getParentFolderId() {
        return parentFolderId;
    }

    public void setParentFolderId(String parentFolderId) {
        this.parentFolderId = parentFolderId;
    }
    public String getFolderName() {
        return folderName;
    }

    public void setFolderName(String folderName) {
        this.folderName = folderName;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public Boolean getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }
    public LocalDateTime getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(LocalDateTime deleteTime) {
        this.deleteTime = deleteTime;
    }

    @Override
    public String toString() {
        return "Folder{" +
            "folderId=" + folderId +
            ", parentFolderId=" + parentFolderId +
            ", folderName=" + folderName +
            ", userId=" + userId +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", isDeleted=" + isDeleted +
            ", deleteTime=" + deleteTime +
        "}";
    }
}
